<template>
<view>

		<uni-card title="模组">
			<view class="box">
				<view class="box_t">
					<span class='mozu_t'>规格型号</span>
					<view class="vc">
						<uni-easyinput disabled=true v-model="wai.muozuguige" placeholder=""></uni-easyinput>
					
				
					</view>
				</view>
				<view class="box_t">
					<span class='mozu_t'>数量(张)</span>
					<view class="vc">
						<uni-easyinput disabled=true v-model="wai.muzong" placeholder=""></uni-easyinput>
					
					</view>

				</view>

			</view>
			<view class="box">

				<view class="box_t">
					<span class='mozu_t'>单价
					</span>
					<view class="vc">
						<uni-easyinput disabled=true v-model="wai.mozudanjia" placeholder=""></uni-easyinput>
					</view>

				</view>

				<view class="box_t">
                  <span class='mozu_t'>金额
					</span>
					<view class="vc">
						<uni-easyinput disabled=true v-model="wai.mozuzongjia" placeholder="模组的高度"></uni-easyinput>

					</view>

				</view>
			</view>
			

		</uni-card>
	<uni-card title="控制卡">
		<view class="box">
			<view class="box_t">
				<span class='mozu_t'>规格型号</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.hoangzhikaguige" placeholder=""></uni-easyinput>
				</view>
			</view>
			<view class="box_t">
				<span class='mozu_t'>数量(张)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.kongzhikazong" placeholder=""></uni-easyinput>
				
				</view>
	
			</view>
	
		</view>
		<view class="box">
	
			<view class="box_t">
				<span class='mozu_t'>单价
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.kongzhikadanjia" placeholder=""></uni-easyinput>
				</view>
	
			</view>
	
			<view class="box_t">
	          <span class='mozu_t'>金额
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.kongzhikazongjia" placeholder="模组的高度"></uni-easyinput>
	
				</view>
	
			</view>
		</view>
		
	
	</uni-card>
	
	<uni-card title="电源">
		<view class="box">
			<view class="box_t">
				<span class='mozu_t'>规格型号</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.dinyuanguioge" placeholder=""></uni-easyinput>
				</view>
			</view>
			<view class="box_t">
				<span class='mozu_t'>数量(台)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.dianyuanshu" placeholder=""></uni-easyinput>
				
				</view>
	
			</view>
	
		</view>
		<view class="box">
	
			<view class="box_t">
				<span class='mozu_t'>单价
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.dianyuandanjia" placeholder=""></uni-easyinput>
				</view>
	
			</view>
	
			<view class="box_t">
	          <span class='mozu_t'>金额
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.dianyuanzongjia" placeholder="模组的高度"></uni-easyinput>
	
				</view>
	
			</view>
		</view>
		
	
	</uni-card>
	<uni-card title="背条">
		<view class="box">
			<view class="box_t">
				<span class='mozu_t'>规格型号</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.neitiaoname" placeholder=""></uni-easyinput>
				</view>
			</view>
			<view class="box_t">
				<span class='mozu_t'>数量(根)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.beitiaoshu" placeholder=""></uni-easyinput>
				
				</view>
	
			</view>
	
		</view>
		<view class="box">
	
			<view class="box_t">
				<span class='mozu_t'>单价
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.bietiaodan" placeholder=""></uni-easyinput>
				</view>
	
			</view>
	
			<view class="box_t">
	          <span class='mozu_t'>金额
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.beitiaozong" placeholder="模组的高度"></uni-easyinput>
	
				</view>
	
			</view>
		</view>
		
	
	</uni-card>
	<uni-card title="转角">
		<view class="box">
			<view class="box_t">
				<span class='mozu_t'>规格型号</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.zhuanjiaoguige" placeholder=""></uni-easyinput>
				</view>
			</view>
			<view class="box_t">
				<span class='mozu_t'>数量(个)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.zhuanjiaozong" placeholder=""></uni-easyinput>
				
				</view>
	
			</view>
	
		</view>
		<view class="box">
	
			<view class="box_t">
				<span class='mozu_t'>单价
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.zhuanjiaodan" placeholder=""></uni-easyinput>
				</view>
	
			</view>
	
			<view class="box_t">
	          <span class='mozu_t'>金额
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.zhuanjiaozongs" placeholder="模组的高度"></uni-easyinput>
	
				</view>
	
			</view>
		</view>
		
	
	</uni-card>
	<uni-card title="框架">
		<view class="box">
			<view class="box_t">
				<span class='mozu_t'>规格型号</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.kuangjiaguige" placeholder=""></uni-easyinput>
				</view>
			</view>
			<view class="box_t">
				<span class='mozu_t'>数量(根)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.kuangjiashu" placeholder=""></uni-easyinput>
				
				</view>
	
			</view>
	
		</view>
		<view class="box">
	
			<view class="box_t">
				<span class='mozu_t'>单价
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.kaungjidanjai" placeholder=""></uni-easyinput>
				</view>
	
			</view>
	
			<view class="box_t">
	          <span class='mozu_t'>金额
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.kuangjiazong" placeholder="模组的高度"></uni-easyinput>
	
				</view>
	
			</view>
		</view>
		
	
	</uni-card>
	<uni-card title="排线">
		<view class="box">
			<view class="box_t">
				<span class='mozu_t'>规格型号</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.paixianname" placeholder=""></uni-easyinput>
				</view>
			</view>
			<view class="box_t">
				<span class='mozu_t'>数量(根)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.paixianshu" placeholder=""></uni-easyinput>
				
				</view>
	
			</view>
	
		</view>
		<view class="box">
	
			<view class="box_t">
				<span class='mozu_t'>单价
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.paixiandanjia" placeholder=""></uni-easyinput>
				</view>
	
			</view>
	
			<view class="box_t">
	          <span class='mozu_t'>金额
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.paixianzong" placeholder="模组的高度"></uni-easyinput>
	
				</view>
	
			</view>
		</view>
		
	
	</uni-card>
	<uni-card title="网线">
		<view class="box">
			<view class="box_t">
				<span class='mozu_t'>规格型号</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.wangxianname" placeholder=""></uni-easyinput>
				</view>
			</view>
			<view class="box_t">
				<span class='mozu_t'>数量(根)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.wangixanshu" placeholder=""></uni-easyinput>
				
				</view>
	
			</view>
	
		</view>
		<view class="box">
	
			<view class="box_t">
				<span class='mozu_t'>单价
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.wangxiandanjia" placeholder=""></uni-easyinput>
				</view>
	
			</view>
	
			<view class="box_t">
	          <span class='mozu_t'>金额
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.wangxianzong" placeholder="模组的高度"></uni-easyinput>
	
				</view>
	
			</view>
		</view>
		
	
	</uni-card>
	<uni-card title="黑红线">
		<view class="box">
			<view class="box_t">
				<span class='mozu_t'>规格型号</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.hiehongxianname" placeholder=""></uni-easyinput>
				</view>
			</view>
			<view class="box_t">
				<span class='mozu_t'>数量(根)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.heihongxianshu" placeholder=""></uni-easyinput>
				
				</view>
	
			</view>
	
		</view>
		<view class="box">
	
			<view class="box_t">
				<span class='mozu_t'>单价
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.hiehongdanjia" placeholder=""></uni-easyinput>
				</view>
	
			</view>
	
			<view class="box_t">
	          <span class='mozu_t'>金额
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.heihongzong" placeholder=""></uni-easyinput>
	
				</view>
	
			</view>
		</view>
		
	
	</uni-card>
	<uni-card title="三心线">
		<view class="box">
			<view class="box_t">
				<span class='mozu_t'>规格型号</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.sanxinxianname" placeholder=""></uni-easyinput>
				</view>
			</view>
			<view class="box_t">
				<span class='mozu_t'>数量(根)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.sanxinxianshu" placeholder=""></uni-easyinput>
				
				</view>
	
			</view>
	
		</view>
		<view class="box">
	
			<view class="box_t">
				<span class='mozu_t'>单价
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.sanxinxiandanjia" placeholder=""></uni-easyinput>
				</view>
	
			</view>
	
			<view class="box_t">
	          <span class='mozu_t'>金额
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.sanxinxianzong" placeholder="模组的高度"></uni-easyinput>
	
				</view>
	
			</view>
		</view>
		
	
	</uni-card>
	<uni-card title="箱体">
		<view class="box">
			<view class="box_t">
				<span class='mozu_t'>规格型号</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.xiangtiname" placeholder=""></uni-easyinput>
				</view>
			</view>
			<view class="box_t">
				<span class='mozu_t'>数量(平方)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.xiangtishu" placeholder=""></uni-easyinput>
				
				</view>
	
			</view>
	
		</view>
		<view class="box">
	
			<view class="box_t">
				<span class='mozu_t'>单价
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.xiangtidanjia" placeholder=""></uni-easyinput>
				</view>
	
			</view>
	
			<view class="box_t">
	          <span class='mozu_t'>金额
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.xiangtizong" placeholder="模组的高度"></uni-easyinput>
	
				</view>
	
			</view>
		</view>
		
	
	</uni-card>
	<uni-card title="组装箱体">
		<view class="box">
			<view class="box_t">
				<span class='mozu_t'>规格型号</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.zuzhuangboxname" placeholder=""></uni-easyinput>
				</view>
			</view>
			<view class="box_t">
				<span class='mozu_t'>数量(平方)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.zuzhuangshu" placeholder=""></uni-easyinput>
				
				</view>
	
			</view>
	
		</view>
		<view class="box">
	
			<view class="box_t">
				<span class='mozu_t'>单价
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.zuzhuangdanjia" placeholder=""></uni-easyinput>
				</view>
	
			</view>
	
			<view class="box_t">
	          <span class='mozu_t'>金额
				</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.zuzhuangzong" placeholder="模组的高度"></uni-easyinput>
	
				</view>
	
			</view>
		</view>
		
	
	</uni-card>
<uni-card title="屏体尺寸">
		<view class="box">
			<view class="box_t">
				<span class='mozu_t'>长(张)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.pintichang" placeholder=""></uni-easyinput>
				</view>
			</view>
		
		</view>
		<view class="box">
			<view class="box_t">
					<span class='mozu_t'>高(张)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.pingtigao" placeholder=""></uni-easyinput>
				</view>
			</view>
		
		</view>
	
	</uni-card>
	<uni-card title="显示面积">
		<view class="box">
			<view class="box_t">
				<span class='mozu_t'>长(米)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.xianshimianjichang" placeholder=""></uni-easyinput>
				</view>
			</view>
		
		</view>
		<view class="box">
			<view class="box_t">
					<span class='mozu_t'>高(米)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.xianshimianjigao" placeholder=""></uni-easyinput>
				</view>
			</view>
		
		</view>
	<view class="box">
		<view class="box_t">
				<span class='mozu_t'>平方</span>
			<view class="vc">
				<uni-easyinput disabled=true v-model="wai.xianshimianjipingfang" placeholder=""></uni-easyinput>
			</view>
		</view>
	
	</view>
	
	</uni-card>
	<uni-card title="成品面积">
		<view class="box">
			<view class="box_t">
				<span class='mozu_t'>长(米)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.chengpinchang" placeholder=""></uni-easyinput>
				</view>
			</view>
		
		</view>
		<view class="box">
			<view class="box_t">
					<span class='mozu_t'>高(米)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.chengpingao" placeholder=""></uni-easyinput>
				</view>
			</view>
		
		</view>
	   <view class="box">
		<view class="box_t">
				<span class='mozu_t'>平方</span>
			<view class="vc">
				<uni-easyinput disabled=true v-model="wai.chengpinmian" placeholder=""></uni-easyinput>
			</view>
		</view>
	
	</view>
		
	</uni-card>
	<uni-card title="控制卡尺寸">
		<view class="box">
			<view class="box_t">
				<span class='mozu_t'>长(张)</span>
				<view class="vc">
					<uni-easyinput disabled=true v-model="wai.kongzhikachang" placeholder=""></uni-easyinput>
				</view>
			</view>
		
		</view>
	<view class="box">
		<view class="box_t">
				<span class='mozu_t'>高(张)</span>
			<view class="vc">
				<uni-easyinput disabled=true v-model="wai.kongzhikakuan" placeholder=""></uni-easyinput>
			</view>
		</view>

	
	
	
	
	
	<view class="sdsds">
		
		</view>
		
	
		
		  </view>
			
		</uni-card>
		<uni-card title="屏体金额(元)">
			<view class="box">
				<view class="box_t">
					
					<view class="vc">
						<uni-easyinput disabled=true v-model="wai.pingtizong" placeholder=""></uni-easyinput>
					</view>
				</view>
			
			</view>
			
		
		</uni-card>
<button @click="goSearch" type="primary">备用设备</button>
<view class="sds">
	
</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// mozupin:'',//模组的品牌
				// mozupxinghao:'',// 模组型号
				// mozuchang:0,//模组的长度
				// mozugao:0,//模组的高度，
				// mozujiage:0,//模组的价格
				// xiangsuchang:0,//长像素点
				// xiangsugao:0,//高像素点
				// kongzhikaa:null,//控制卡品牌
				// kongzhikaxinx:"无",//控制卡型号
				// kongzhikadanjia:0,//控制卡单价
				// fasongka:'无',//发送卡
				// fasongkadanjia:0,//发送卡单价
				// tongxunA:0,//通讯A
				// tongxunB:0,//通讯B
				// daizai:12,//带载
				// dainjianju:0,//点间距
				// dianyuanpin:"无",//电源品牌
				// dianyuanpinmodel:"无",//电源型号
				// dianyuanjiage:0,//电源价格
				// dianyuangonglv:0,//电源功率
				// chiliqipin:"无",//处理器品牌
				// chiliqixing:'无',//处理器型号
				// chiliqijiage:0,//处理器价格
				// box:"无",//箱体
				// boxbian:0,//箱体边厚
				// boxjiage:0,//箱体价格
				// zuzhaungxiang:"无",//组装箱体
				// zuzhaungjiage:0,//组装箱体价格
				// kaungjianame:"无",//框架名字
				// kaungjiazhuanjiao:0,//框架转角数量
				// zhuanjiaojiage:0,//转角价格
				// kaungjiabian:0,//框架边厚
				// kaungjiadanjai:0,//框架价格
				// kaungjiadanjiage:0,//框架但面积价格
				// bieitaoname:"无",//背条名字
				// beitiaojiage:0,//背条价格
				// wangixnName:'无',//网线名字
				// wangxianjiage:0,//网线价格
				// shuilv:0,//税率
				// zongchang:0,//总长
				// zongkuan:0,//总宽
				
				wai:{
					
					muozuguige:'无',// 模组规格型号
					muzong:0,//模组数量
					mozudanjia:0,//模组单价
					mozuzongjia:0,//模组总价格
					pintichang:0,// 屏体尺寸长
					pingtigao:0,// 屏体尺寸高
					kongzhikachang:0,//控制卡总长
					kongzhikakuan:0,//控制卡总高
					hoangzhikaguige:'无',//控制卡规格
					kongzhikazong:0,// 控制卡数量
					kongzhikadanjia:0,//控制卡单价
					kongzhikazongjia:0,//控制卡总价
					dinyuanguioge:'无',//电源规格
					dianyuanshu:0,//电源数量
					dianyuandanjia:0,//电源单价
					dianyuanzongjia:0,//电源总价
					neitiaoname:'无',//背条规格
					beitiaoshu:0,//背条数量
					bietiaodan:0,//背条单价
					beitiaozong:0,//背条总价
					zhuanjiaoguige:'无',//转角的规格型号
					zhuanjiaozong:0,//转角的数量
					zhuanjiaodan:0,//转角单价
					zhuanjiaozongs:0.,//转角总价
					kuangjiaguige:'无',//框架规格
					kaungjidanjai:0,//框架的单价
					kuangjiashu:0,//框架的数量
					kuangjiazong:0,//框架的总金额
					paixianname:'无',//排线名字
					paixianshu:0,//排线数量
					paixiandanjia:0,//排线单价
					paixianzong:0,//排线总价
					wangxianname:'无',//网线名字
					wangxiandanjia:0,//网线的价格
					wangixanshu:0,//网线的数量
					wangxianzong:0,//网线总价
					hiehongxianname:'无',//黑红线名字
					heihongxianshu:0,//黑红线的数量
					hiehongdanjia:0,//黑红线单价
					heihongzong:0,//黑红线总价
					sanxinxianname:'无',//三心线名称
					sanxinxianshu:0,//三心线数量
					sanxinxiandanjia:0,//三心线单价
					sanxinxianzong:0,//三心线总价
					xiangtiname:'无',//箱体名字
					xiangtidanjia:0,//箱体单价
					xiangtishu:0,//箱体数量
					xiangtizong:0,//箱体总价
					zuzhuangboxname:'无',//组装箱体名字
					zuzhuangdanjia:0,//组装箱体单价
					zuzhuangshu:0,//组装箱体数量
					zuzhuangzong:0,//组装箱体总价
					pingtizong:0,//屏体总价
					xianshimianjichang:0,//显示面积长
					xianshimianjigao:0,//显示面积高
					xianshimianjipingfang:0,//显示面积平方
					chengpinchang:0,//成品面积长
					chengpingao:0,//成品高度
					chengpinmian:0,//成品的面积
					
				}
			};
		},
		computed: {
		    count () {
		      return this.$store.state.user.oneData
		    }
		  },
		  
		  mounted() {
		  		this.jisuan()
		  },
		created() {
		// this.gerisd()
		// this.fef()
		},
		methods:{
			
			// 前往备用设备
			goSearch(){
				
				this.$store.commit('user/updateonewai',this.wai)
				uni.navigateTo({
					url:`/subpkg/bieyong/bieyong`
				});
				// 跳转到预算页
				// uni.navigateTo({
				//   url: './../'
				// })
				
			},
			// 获取？
			async fef(){
				const {data} = await uni.$http.post('/gerisd')
				console.log(data);
			},
		async	gerisd(){
				
			},
			// 获取排线
		   async	getpaixian(){
				const {data} = await uni.$http.post('/meng/Getpaixian',{model:'加长排线'})
				
				// 排线名字
				this.wai.paixianname=data.data[0].model
				// 排线单价
				this.wai.paixiandanjia=data.data[0].price
				
				// 排线数量
				   this.wai.paixianshu=this.wai.pingtigao*this.wai.kongzhikachang+10
				 
				   if(isNaN(this.wai.paixianshu)){
					   this.wai.paixianshu=0
				   }
				   // 排线单价
				if(this.wai.paixianshu==0){
					this.wai.paixiandanjia=0
				}
				
				// 排线总价
			
				this.wai.paixianzong=(this.wai.paixiandanjia*this.wai.paixianshu).toFixed(2)
			},
			
			// 获取黑红线
			async Gethiegong(){
				const {data} = await uni.$http.post('/meng/Gethiegong',{model:'40CM黑红线'})
			// 黑红线名字
				this.wai.hiehongxianname=data.data[0].model
				// 三心线名字
				this.wai.sanxinxianname=data.data[0].model
				// 黑红线数量
				this.wai.heihongxianshu=this.wai.kongzhikazong
				// 三心线数量
				this.wai.sanxinxianshu=this.wai.dianyuanshu
				// 黑红线单价
				this.wai.hiehongdanjia=data.data[0].price
				// 三心线单价
				this.wai.sanxinxiandanjia=data.data[0].price
				
				
				if(isNaN(this.wai.heihongxianshu)){
			     this.wai.heihongxianshu=0
				}
				if(this.wai.heihongxianshu==0){
					this.wai.hiehongdanjia=0
				}
				// 黑红线总价
				this.wai.heihongzong=(this.wai.heihongxianshu*this.wai.hiehongdanjia).toFixed(2)
				// 三心线总价
				
				this.wai.sanxinxianzong=(this.wai.sanxinxiandanjia*this.wai.sanxinxianshu).toFixed(2)
				
				
				
			
							 
		
				this.wai.pingtizong=(Number(this.wai.mozuzongjia)+Number(this.wai.kongzhikazongjia)+Number(this.wai.dianyuanzongjia)+
				Number(this.wai.beitiaozong)+Number(this.wai.zhuanjiaozongs)+ Number(this.wai.kuangjiazong)+Number(this.wai.paixianzong)+
				Number(this.wai.wangxianzong)+Number(this.wai.heihongzong)+Number(this.wai.sanxinxianzong)+Number(this.wai.xiangtizong)+
				Number(this.wai.zuzhuangzong)).toFixed(2)
				
			},
			// 计算开始
			jisuan(){
		uni.showLoading({
			   
		   title: '正在计算...',
		 })
				// 屏体尺寸长
				this.wai.pintichang=Math.floor(this.count.zongchang/(this.count.mozuchang/10))
				// console.log(this.count.zongchang,this.count.mozuchang);
				// console.log(this.wai.pintichang);
				// 屏体尺寸高
				this.wai.pingtigao=Math.floor(this.count.zongkuan/(this.count.mozugao/10))
				// 控制卡尺寸
				this.wai.kongzhikachang=Math.ceil(this.wai.pintichang/this.count.tongxunB)
				
			    this.wai.kongzhikakuan=Math.ceil(this.wai.pingtigao/this.count.tongxunA)
				// 模组规格型号
				this.wai.muozuguige=this.count.mozupin+' '+this.count.mozupxinghao
				// 模组数量
			
			     this.wai.muzong=this.wai.pintichang*this.wai.pingtigao
			    // 模组单价
			    this.wai.mozudanjia=this.count.mozujiage
				// 模组总价
				this.wai.mozuzongjia=(this.wai.muzong*this.wai.mozudanjia).toFixed(2)
				// 控制卡数量
			
				this.wai.kongzhikazong=this.wai.kongzhikachang*this.wai.kongzhikakuan
				console.log(this.wai.kongzhikazong);
				this.wai.kongzhikazong=this.wai.kongzhikazong!=Infinity?this.wai.kongzhikazong:0
				console.log(this.wai.kongzhikazong);
				// 控制卡单价
				this.wai.kongzhikadanjia=this.count.kongzhikadanjia
				// 控制卡总价
				this.wai.kongzhikazongjia=(this.wai.kongzhikazong*this.wai.kongzhikadanjia).toFixed(2)
				// 控制卡规格
				this.wai.hoangzhikaguige=this.count.kongzhikaa+" "+this.count.kongzhikaxinx
				// 电源规格
			
				this.wai.dinyuanguioge=this.count.dianyuanpin+" "+this.count.dianyuanpinmodel
				// 电源数量
				this.wai.dianyuanshu=Math.ceil(this.wai.muzong/4)
				// 电源单价
				this.wai.dianyuandanjia=this.count.dianyuanjiage
				// 电源总价
				this.wai.dianyuanzongjia=(this.wai.dianyuanshu*this.wai.dianyuandanjia).toFixed(2)
				// 背条规格
				this.wai.neitiaoname=this.count.bieitaoname
			    // 背条数量
					this.wai.beitiaoshu=this.wai.pintichang+3
				// 背条单价
				this.wai.bietiaodan=this.count.beitiaojiage
				//背条总价
				this.wai.beitiaozong=(this.wai.beitiaoshu*this.wai.bietiaodan).toFixed(2)
				// 转角的规格型号
				this.wai.zhuanjiaoguige=this.count.kaungjianame
				// 转角数量
				this.wai.zhuanjiaozong=this.count.kaungjiazhuanjiao
				// 转角单价
				this.wai.zhuanjiaodan=this.count.zhuanjiaojiage
				// 转角总价
                this.wai.zhuanjiaozongs=	(this.wai.zhuanjiaozong*	this.wai.zhuanjiaodan	).toFixed(2)
				// 框架规格
				this.wai.kuangjiaguige=this.count.kaungjianame
				// 框架的单价
				this.wai.kaungjidanjai=this.count.kaungjiadanjai
				// 框架的数量\
				this.wai.kuangjiashu=(((this.wai.pintichang*this.count.mozuchang)+
				(this.wai.pingtigao*this.count.mozugao))*2/6000).toFixed(2)
			   // 框架的总金额
			   this.wai.kuangjiazong=(this.wai.kaungjidanjai*this.wai.kuangjiashu).toFixed(2)
			   // 获取排线
			   this.getpaixian()
		        // 网线名字
				this.wai.wangxianname=this.count.wangixnName
			    // 网线的价格
				this.wai.wangxiandanjia=this.count.wangxianjiage
				// 网线的数量
				this.wai.wangixanshu=this.wai.kongzhikazong
			    // 网线总价
				this.wai.wangxianzong=(this.wai.wangixanshu*this.wai.wangxiandanjia).toFixed(2)
			 
			   // 箱体名字
			   this.wai.xiangtiname=this.count.box
			   // 箱体单价
			   this.wai.xiangtidanjia=this.count.boxjiage
			   // 箱体数量
			
			   
			   this.wai.xiangtishu=(this.wai.pintichang*this.count.mozuchang+parseFloat(this.count.boxbian))*
			   (this.count.mozugao*this.wai.pingtigao+parseFloat(this.count.boxbian))/1000000
			   
			   if(this.wai.xiangtiname=="无"){
				   this.wai.xiangtishu=0
			   }
			   // 箱体总价
			   this.wai.xiangtizong=(this.wai.xiangtishu*this.wai.xiangtidanjia).toFixed(2)
			   // 组装箱体名字
			   this.wai.zuzhuangboxname=this.count.zuzhaungxiang
			   // 组装箱体单价
			   this.wai.zuzhuangdanjia=this.count.zuzhaungjiage
			   // 组装箱体数量
			   this.wai.zuzhuangshu=(this.wai.xiangtishu).toFixed(2)
			   // 组装箱体总价
			   this.wai.zuzhuangzong=(this.wai.zuzhuangdanjia*this.wai.zuzhuangshu).toFixed(2)
			 
			   // 屏体总价
			// 获取黑红线
			this. Gethiegong()
			   // 显示面积长
			 
			   this.wai.xianshimianjichang=this.wai.pintichang*this.count.mozuchang/1000
			   // 显示面积高
			    this.wai.xianshimianjigao=(this.wai.pingtigao*this.count.mozugao/1000)
			   // 显示面积平方
			   this.wai.xianshimianjipingfang=(this.wai.xianshimianjigao*this.wai.xianshimianjichang).toFixed(2)
			   
		
			  // 成品的长
			   this.wai.chengpinchang=(this.wai.xianshimianjichang+ parseFloat(this.count.boxbian/1000)
			   + parseFloat(this.count.kaungjiabian/1000)).toFixed(2)
			   // 成品的高
			   this.wai.chengpingao=(this.wai.xianshimianjigao+parseFloat(this.count.boxbian/1000)
			   + parseFloat(this.count.kaungjiabian/1000)).toFixed(2)
			   // 成品的平方
			   this.wai.chengpinmian= (this.wai.chengpinchang*this.wai.chengpingao).toFixed(2)
			   uni.hideLoading()
			   // boxbian:0,//箱体边厚
			   // boxjiage:0,//箱体价格
			   // zuzhaungxiang:"无",//组装箱体
			   // zuzhaungjiage:0,//组装箱体价格
			   // kaungjianame:"无",//框架名字
			   // kaungjiazhuanjiao:0,//框架转角数量
			   // zhuanjiaojiage:0,//转角价格
			   // kaungjiabian:0,//框架边厚
			},
			
		},
		
	}
</script>

<style lang="scss">
.uni-easyinput__content-input{color: #000;}
.sdsds {
		height: 30px;
		margin-bottom: 20px;
	}
	.sds{height: 30px;
	}
	.uni-card__header-content-title{font-size: 18px !important;
	color: #029d94 !important;}
	button{background-color: #029d94 !important;}
</style>
